From fbada980597de0bf5cf8937b6f486a7fcd2800f6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 27 Dec 2008 01:16:52 +0000 Subject: [PATCH] Emit property notification for the text-length property svn path=/trunk/; revision=21938 --- ChangeLog | 5 +++++ gtk/gtkentry.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d00dd0ddab..4f64ff45c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-26 Matthias Clasen + + * gtk/gtkentry.c: Emit property notification for the text-length + property. + 2008-12-26 Matthias Clasen * demos/gtk-demo/search_entry.c: Add a demo for new entry features. diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 18198045a3..78b15a48c4 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -1187,7 +1187,7 @@ gtk_entry_class_init (GtkEntryClass *class) * GtkEntry::icon-pressed: * @entry: The entry on which the signal is emitted * @icon_pos: The position of the clicked icon - * @buttomotione mouse button clicked + * @event: the button press event * * The ::icon-pressed signal is emitted when an icon is clicked. * @@ -1208,7 +1208,7 @@ gtk_entry_class_init (GtkEntryClass *class) * GtkEntry::icon-released: * @entry: The entry on which the signal is emitted * @icon_pos: The position of the clicked icon - * @button: The mouse button clicked + * @event: the button release event * * The ::icon-released signal is emitted on the button release from a * mouse click. @@ -4115,6 +4115,7 @@ gtk_entry_real_insert_text (GtkEditable *editable, emit_changed (entry); g_object_notify (G_OBJECT (editable), "text"); + g_object_notify (G_OBJECT (editable), "text-length"); } static void @@ -4165,6 +4166,7 @@ gtk_entry_real_delete_text (GtkEditable *editable, emit_changed (entry); g_object_notify (G_OBJECT (editable), "text"); + g_object_notify (G_OBJECT (editable), "text-length"); } } -- 2.30.2